<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        .hide{
            display: none;
        }
    </style>
</head>
<body>
    <div>
        <div>
            <div id="m1" onclick="Change(1);">菜单一</div>
            <div>
                <div>1.1</div>
                <div>1.2</div>
                <div>1.3</div>
            </div>
        </div>
        <div>
            <div id="m2" onclick="Change(2);">菜单二</div>
            <div>
                <div>2.1</div>
                <div>2.2</div>
                <div>2.3</div>
            </div>
        </div>
        <div>
            <div id="m3" onclick="Change(3);">菜单三</div>
            <div>
                <div>3.1</div>
                <div>3.2</div>
                <div>3.3</div>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="jquery-2.1.4.min.js"></script>
    <script type="text/javascript">
        function Change(arg){
            //找到，点击的哪一个？
            if(arg==1){
                var menu=$('#m1')
            }else if(arg==2){
                var menu=$('#m2')
            }else{
                var menu=$('#m3')
            }
            console.log(menu.text())
        }
    </script>
</body>
</html>